<template>
  <el-row :gutter="15" class="panel-group">
    <el-col :xs="12" :sm="12" :lg="16" class="card-panel-col">
      <div class="card-panel">
        <img :src="avatar" class="fl mt20 ml20 avatar"/>
        <!-- <el-avatar :src="avatar" icon="el-icon-user-solid" class="avatar fl mt20 ml20"/> -->
        <div class="userInfo ml10 fl mt30">
          <div class="info-wrapper mt10">
            <span class="fb">{{ name }}</span>
            <!-- <label class="text-fff pl10 pr10 ml10">开通VIP会员</label> -->
          </div>
          <!-- <div class="vip-text text-666 mt10">您还不是VIP会员欢迎您</div> -->
        </div>
      </div>
    </el-col>
    <el-col :xs="12" :sm="12" :lg="8" class="card-panel-col">
      <div class="card-panel">
        <p class="tips">如果需要帮忙请随时联系我哦~</p>
        <div class="work-info mt20">
          <i class="el-icon-phone-outline text-blue fb f18" />
          <span class="text-blue fb f18 ml5">400-9988-911</span>
          <span class="text-666 f14 ml10">工作日8:30-17:30</span>
        </div>
      </div>
    </el-col>
  </el-row>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  components: {
  },
  computed: {
    ...mapGetters([
      'avatar',
      'name'
    ])
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.panel-group {
  .card-panel-col {
    margin-bottom: 15px;
  }

  .card-panel {
    height: 120px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    color: #666;
    background: #fff;
    box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .05);
    .avatar{
      // width: 80px;
      // height: 80px;
      // border-radius: 40px;
      // font-size: 40px;
      // line-height: 80px;
      // ::v-deep{
      //   img{
      //         width: 100%;
      //   }
      // }
      width: 175px;
      height: 75px;
    }
    .userInfo{
      height: 80px;
      .info-wrapper{
        line-height: 26px;
        label{
          display: inline-block;
          height: 26px;
          background: #E3CA96;
          border-radius: 4px;
        }
      }
      .vip-text{
        height: 30px;
        line-height: 30px;
      }
    }
    .tips{
      text-align: center;
      line-height: 14px;
      margin: 0;
      margin-top: 35px;
    }
    .work-info{
      text-align: center;
      line-height: 18px;
      span,i{
        display: inline-block;
        vertical-align: middle;
      }
    }
   }
}

@media (max-width:550px) {
  .card-panel-description {
    display: none;
  }

  .card-panel-icon-wrapper {
    float: none !important;
    width: 100%;
    height: 100%;
    margin: 0 !important;

    .svg-icon {
      display: block;
      margin: 14px auto !important;
      float: none !important;
    }
  }
}
</style>
